//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of the BCGControlBar Library
// Copyright (C) 1998-2010 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and conditions 
// of the accompanying license agreement.
//*******************************************************************************
//

#ifndef __OPENCVLIB_H
#define __OPENCVLIB_H


#define _OPENCV_CALIB3D1_		"opencv_calib3d"
#define _OPENCV_CONTRIB1_		"opencv_contrib"
#define _OPENCV_CORE1_			"opencv_core"
#define _OPENCV_FEATURES2D1_	"opencv_features2d"
#define _OPENCV_FLANN1_			"opencv_flann"
#define _OPENCV_GPU1_			"opencv_gpu"
#define _OPENCV_HAARTRAIN1_		"opencv_haartraining_engine"
#define _OPENCV_HIGHGUI1_		"opencv_highgui"
#define _OPENCV_IMGPROC1_		"opencv_imgproc"
#define _OPENCV_LEGACY1_		"opencv_legacy"
#define _OPENCV_ML1_			"opencv_ml"
#define _OPENCV_NONFREE1_		"opencv_nonfree"
#define _OPENCV_OBJDETECT1_		"opencv_objdetect"
#define _OPENCV_PHOTO1_			"opencv_photo"
#define _OPENCV_STITCH1_		"opencv_stitching"
#define _OPENCV_TS1_			"opencv_ts"
#define _OPENCV_VIDEO1_			"opencv_video"
#define _OPENCV_VIDEOS1_		"opencv_videostab"


#define _OPENCV_CALIB3D2_		_OPENCV_CALIB3D1_##"242"
#define _OPENCV_CONTRIB2_		_OPENCV_CONTRIB1_##"242"
#define _OPENCV_CORE2_			_OPENCV_CORE1_##"242"
#define _OPENCV_FEATURES2D2_	_OPENCV_FEATURES2D1_##"242"
#define _OPENCV_FLANN2_			_OPENCV_FLANN1_##"242"
#define _OPENCV_GPU2_			_OPENCV_GPU1_##"242"
#define _OPENCV_HAARTRAIN2_		_OPENCV_HAARTRAIN1_##""
#define _OPENCV_HIGHGUI2_		_OPENCV_HIGHGUI1_##"242"
#define _OPENCV_IMGPROC2_		_OPENCV_IMGPROC1_##"242"
#define _OPENCV_LEGACY2_		_OPENCV_LEGACY1_##"242"
#define _OPENCV_ML2_			_OPENCV_ML1_##"242"
#define _OPENCV_NONFREE2_		_OPENCV_NONFREE1_##"242"
#define _OPENCV_OBJDETECT2_		_OPENCV_OBJDETECT1_##"242"
#define _OPENCV_PHOTO2_			_OPENCV_PHOTO1_##"242"
#define _OPENCV_STITCH2_		_OPENCV_STITCH1_##"242"
#define _OPENCV_TS2_			_OPENCV_TS1_##"242"
#define _OPENCV_VIDEO2_			_OPENCV_VIDEO1_##"242"
#define _OPENCV_VIDEOS2_		_OPENCV_VIDEOS1_##"242"

#ifdef _DEBUG
	#define _OPENCV_CALIB3D_	_OPENCV_CALIB3D2_##"d.lib"
	#define _OPENCV_CONTRIB_	_OPENCV_CONTRIB2_##"d.lib"
	#define _OPENCV_CORE_		_OPENCV_CORE2_##"d.lib"
	#define _OPENCV_FEATURES2D_	_OPENCV_FEATURES2D2_##"d.lib"
	#define _OPENCV_FLANN_		_OPENCV_FLANN2_##"d.lib"
	#define _OPENCV_GPU_		_OPENCV_GPU2_##"d.lib"
	#define _OPENCV_HAARTRAIN_	_OPENCV_HAARTRAIN2_##"d.lib"
	#define _OPENCV_HIGHGUI_	_OPENCV_HIGHGUI2_##"d.lib"
	#define _OPENCV_IMGPROC_	_OPENCV_IMGPROC2_##"d.lib"
	#define _OPENCV_LEGACY_		_OPENCV_LEGACY2_##"d.lib"
	#define _OPENCV_ML_			_OPENCV_ML2_##"d.lib"
	#define _OPENCV_NONFREEO_	_OPENCV_NONFREE2_##"d.lib"
	#define _OPENCV_OBJDETECT_	_OPENCV_OBJDETECT2_##"d.lib"
	#define _OPENCV_PHOTO_		_OPENCV_PHOTO2_##"d.lib"
	#define _OPENCV_STITCH_		_OPENCV_STITCH2_##"d.lib"
	#define _OPENCV_TS_			_OPENCV_TS2_##"d.lib"
	#define _OPENCV_VIDEO_		_OPENCV_VIDEO2_##"d.lib"
	#define _OPENCV_VIDEOS_		_OPENCV_VIDEOS2_##"d.lib"
#else
	#define _OPENCV_CALIB3D_	_OPENCV_CALIB3D2_##".lib"
	#define _OPENCV_CONTRIB_	_OPENCV_CONTRIB2_##".lib"
	#define _OPENCV_CORE_		_OPENCV_CORE2_##".lib"
	#define _OPENCV_FEATURES2D_	_OPENCV_FEATURES2D2_##".lib"
	#define _OPENCV_FLANN_		_OPENCV_FLANN2_##".lib"
	#define _OPENCV_GPU_		_OPENCV_GPU2_##".lib"
	#define _OPENCV_HAARTRAIN_	_OPENCV_HAARTRAIN2_##".lib"
	#define _OPENCV_HIGHGUI_	_OPENCV_HIGHGUI2_##".lib"
	#define _OPENCV_IMGPROC_	_OPENCV_IMGPROC2_##".lib"
	#define _OPENCV_LEGACY_		_OPENCV_LEGACY2_##".lib"
	#define _OPENCV_ML_			_OPENCV_ML2_##".lib"
	#define _OPENCV_NONFREEO_	_OPENCV_NONFREE2_##".lib"
	#define _OPENCV_OBJDETECT_	_OPENCV_OBJDETECT2_##".lib"
	#define _OPENCV_PHOTO_		_OPENCV_PHOTO2_##".lib"
	#define _OPENCV_STITCH_		_OPENCV_STITCH2_##".lib"
	#define _OPENCV_TS_			_OPENCV_TS2_##".lib"
	#define _OPENCV_VIDEO_		_OPENCV_VIDEO2_##".lib"
	#define _OPENCV_VIDEOS_		_OPENCV_VIDEOS2_##".lib"
#endif

#pragma comment(lib, _OPENCV_CALIB3D_)
#pragma comment(lib, _OPENCV_CONTRIB_)
#pragma comment(lib, _OPENCV_CORE_)
#pragma comment(lib, _OPENCV_FEATURES2D_)
#pragma comment(lib, _OPENCV_FLANN_)
#pragma comment(lib, _OPENCV_GPU_)
#pragma comment(lib, _OPENCV_HAARTRAIN_)
#pragma comment(lib, _OPENCV_HIGHGUI_)
#pragma comment(lib, _OPENCV_IMGPROC_)
#pragma comment(lib, _OPENCV_LEGACY_)
#pragma comment(lib, _OPENCV_ML_)
#pragma comment(lib, _OPENCV_NONFREEO_)
#pragma comment(lib, _OPENCV_OBJDETECT_)
#pragma comment(lib, _OPENCV_PHOTO_)
#pragma comment(lib, _OPENCV_STITCH_)
#pragma comment(lib, _OPENCV_TS_)
#pragma comment(lib, _OPENCV_VIDEO_)
#pragma comment(lib, _OPENCV_VIDEOS_)

//#include <string>
//#include <map>
//#include <list>
//
//
//#ifdef Unicode
//	typedef SysConfigString			WSysConfigString;
//#else
//	typedef WSysConfigString		WSysConfigString;
//#endif

//
//
//
//#include "..\..\Comm\SysComLib\UserControl.h"
#include <opencv/cv.h>
//#include <opencv/cv.hpp>
#include <opencv/cvaux.h>
#include <opencv2/opencv.hpp>
//#include <opencv/cvaux.hpp>
//#include <opencv/cvwimage.h>
#include <opencv/cxcore.h>
//#include <opencv/cxcore.hpp>
//#include <opencv/cxeigen.hpp>
//#include <opencv/cxmisc.h>
#include <opencv/highgui.h>
#include <opencv/ml.h>

#define BUFERNUM  1024*1024*10


#endif // __OPENCVLIB_H
